//
//  Config.h
//  xmppones
//
//  Created by 李立达 on 2017/2/21.
//  Copyright © 2017年 李立达. All rights reserved.
//
#import "UIView+Common.h"
/* 字号*/
#define FONTSIZE_DEMOLIST_TITLE 17
#define FONTSIZE_DEMOLIST_SUBTITLE 10
/* 颜色*/
#define UIColorFromRGBA(rgbValue, alphaValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:alphaValue]

#define FONTCOLOR_DEMOLIST_TITLE          UIColorFromRGBA(0x303133,1) //深灰
#define FONTCOLOR_DEMOLIST_SUBTITLE       UIColorFromRGBA(0xc5c6c7,1) //浅灰
#define FONTCOLOR_DEMOLIST_SUBTITLE_DARK  UIColorFromRGBA(0x6e7275,1) //中灰
#define COLOR_LINE                        UIColorFromRGBA(0xf0f0f0,1) //线的颜色
#define COLOR_CELLSEPARATOR               UIColorFromRGBA(0xebebeb,1)
#define COLOR_REDCOLOR                    UIColorFromRGBA(0xff493b,1) //通用红色
#define COLOR_YELLOWCOLOR                 UIColorFromRGBA(0xfff200,1)
#define COLOR_BLUDBUTTON                  UIColorFromRGBA(0x29d0f5,1) //蓝色边框的按


//============================================== 判断用
#define IOS9 ([[[UIDevice currentDevice] systemVersion] floatValue] >= 9.0)

//============================================== 通用颜色
/* 头像蒙层*/
#define COLOR_PICTUERCOVER             [[UIColor blackColor]colorWithAlphaComponent:0.04]
/* 发现页作品蒙层*/
#define COLOR_WORKSCOVER             [[UIColor blackColor]colorWithAlphaComponent:0.04]
/* 控制器背景颜色*/
#define COLOR_CONTROLLER_BACKGROUND    UIColorFromRGBA(0xf5f5f5,1)
/* 导航栏分隔线颜色*/
#define COLOR_NAVGATIONBAR_SEPARATER   [[UIColor blackColor]colorWithAlphaComponent:0.1]

#define COLOR_ADDFRIRNDBUTTON    UIColorFromRGBA(0x29d0f5,1)
/* 我的作品展开栏的宽度*/
#define BTNBACKVIEW_WIDTH   80
/* 直播通用黄色*/
#define COLOR_LIVE_YELLOW    UIColorFromRGBA(0xffea00,1)

#define KDeviceWith [UIScreen mainScreen].bounds.size.width
#define KDeviceHeight [UIScreen mainScreen].bounds.size.height
#define NavgionbarHeight   64
#define REFRESHFRIEND      @"refreshfriend"
#define USERNAME            @"username"
#define PASSWORD            @"password"
